package com.graduation.roombooking.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.roombooking.pojo.Order;
import com.graduation.roombooking.vo.AppointRoomVo;
import com.graduation.roombooking.vo.PersonalOrderVo;
import com.graduation.roombooking.vo.RespBean;
import com.graduation.roombooking.vo.UnionQueryOrderVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhaoXinyi
 * @since 2022-05-04
 */
public interface IOrderService extends IService<Order> {

    RespBean getList(String companyName);

    RespBean updateStatus(String companyName, Integer status, String orderId);

    RespBean unionQuery(UnionQueryOrderVo unionQueryOrderVo, String companyName);

    //applet——预约
    RespBean appoint(AppointRoomVo appointRoomVo, Long phone);

    RespBean getTimeList(Integer roomId);

    //取消订单
    RespBean cancelOrder(Integer orderId, Long phone);

    //applet-获取我的订单
    RespBean getPersonalOrder(PersonalOrderVo personalOrderVo, Long phone);

    //web——数据统计
    RespBean getStatistics(String companyName,Integer day);
}
